package com.craney.aboutNamesapce
{
	public class SecondNamespace
	{
		public function SecondNamespace()
		{
			var myNs:Namespace = new Namespace("craney", "http://www.fender.com/");
//			default xml namespace = myNs;
			
			var fenderXML:XML = 
				<fender>
					This is a fender guitar!
				</fender>;
			
			
			fenderXML.addNamespace(myNs);
			fenderXML.myNs::type = "folk";
			fenderXML.type = "rock";
			fenderXML.type[1] = "slice";
			fenderXML.type[1].@good = "best";
//			trace(fenderXML);

			XML.ignoreComments = false;
			var num:XML = 
				<all cpu="1">
					<one>1</one>
					<two>2</two>
					<third>3</third>
					<copy att="a">a</copy>
					<copy att="b">b</copy>
					<copy att="c">c</copy>
					<!-- This is a comment! -->
					
				</all>
//			trace(XML.prettyIndent);
//			trace(num);
//			XML.prettyPrinting = true;
//			XML.prettyIndent = 5;
//			trace(num.@cpu.toXMLString());
//			trace(num);
//			XML.prettyIndent = 10;
//			trace(num);
			
			XML.ignoreWhitespace = false;
			var e1:XML = <a>aaaa</a>;
			var e2:XML =
				<a>
					aaaa
					
					
				</a>;
			trace(e1==e2);
			
			

		}

	}
}